package world;


import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.BeforeClass;
import org.junit.Test;

import world.placement.Position;
import world.square.Square;

public class LevelTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
			level = new Level<Square>(40, 40);
			position1 = new Position (15, 20, 0);
			position2 = new Position (20, 20, 1);
			square1 = new Square();
					
		}
		private static Level<Square> level;
		private static Position position1;
		private static Position position2;
		private static Square square1;
	

		@Test
		public final void canHaveAsPosition_TrueCase(){
			assertTrue(level.canHaveAsPosition(position1));
		}
		
		@Test
		public final void canHaveAsPosition_FalseCase(){
			assertFalse(level.canHaveAsPosition(position2));
		}
		
		@Test
		public final void canHaveAsSquare_TrueCase(){
			assertTrue (level.canHaveAsSquare(square1));
		}
}
